package com.mbc.hr.entities;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Entity
@Table(name="HR_AttendancePenaltyDetails")
@NamedQueries({
	@NamedQuery(name="AttendancePenaltyDetail.findByPenaltyID", query="SELECT d FROM AttendancePenaltyDetail d WHERE d.attendancePenaltyID = :attendancePenaltyID"),
	@NamedQuery(name="AttendancePenaltyDetail.deleteByPenaltyID", query="DELETE FROM AttendancePenaltyDetail d WHERE d.attendancePenaltyID = :attendancePenaltyID"),
	@NamedQuery(name="AttendancePenaltyDetail.getPenaltyDetailsByEmployeeID", query="SELECT apd FROM AttendancePenaltyDetail apd, AttendancePolicy ap, EmployeeGroup eg, Employee e WHERE e.employeeGroupID = eg.employeeGroupID AND eg.attendancePolicyID = ap.attendancePolicyID AND ap.attendancePenaltyID = apd.attendancePenaltyID AND e.employeeID = :employeeID")
})
public class AttendancePenaltyDetail implements Serializable {
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private long attendancePenaltyDetailsID;
	private long attendancePenaltyID;
	private int fromLateTime;
	private int toLateTime;
	private float absenceType;
	private int penaltyType;
	
	public int getFromLateTime() {
		return fromLateTime;
	}
	public void setFromLateTime(int fromLateTime) {
		this.fromLateTime = fromLateTime;
	}
	public int getToLateTime() {
		return toLateTime;
	}
	public void setToLateTime(int toLateTime) {
		this.toLateTime = toLateTime;
	}
	public float getAbsenceType() {
		return absenceType;
	}
	public void setAbsenceType(float absencePeriod) {
		this.absenceType = absencePeriod;
	}
	public long getAttendancePenaltyDetailsID() {
		return attendancePenaltyDetailsID;
	}
	public void setId(long attendancePenaltyDetailsID) {
		this.attendancePenaltyDetailsID = attendancePenaltyDetailsID;
	}
	public long getAttendancePenaltyID() {
		return attendancePenaltyID;
	}
	public void setAttendancePenaltyID(long attendancePenaltyID) {
		this.attendancePenaltyID = attendancePenaltyID;
	}
	public int getPenaltyType() {
		return penaltyType;
	}
	public void setPenaltyType(int penaltyType) {
		this.penaltyType = penaltyType;
	}
	
}
